tests: add test for check for remote add --set=gpg-verify-summary=true
authorGiuseppe Scrivano <gscrivan@redhat.com>
Wed, 3 Jun 2015 10:55:30 +0000 (12:55 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 26 Jun 2015 09:02:25 +0000 (11:02 +0200)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
tests/test-pull-mirror-summary.sh

index a7124538aeabcab16c655c32a87eabba79d4ff09..dfb3f20dcb93c3470ade21026ba114971e7c07b4 100755 (executable)
@@ -63,6 +63,13 @@ rm -rf repo
 mkdir repo
 ${OSTREE} --repo=repo init --mode=archive-z2
 ${OSTREE} --repo=repo remote add origin $(cat httpd-address)/ostree/gnomerepo
+echo "ok pull mirror without checking signed summary"
+
+cd ${test_tmpdir}
+rm -rf repo
+mkdir repo
+${OSTREE} --repo=repo init --mode=archive-z2
+${OSTREE} --repo=repo remote add --set=gpg-verify-summary=true origin $(cat httpd-address)/ostree/gnomerepo
 ${OSTREE} --repo=repo pull --mirror origin 2>/dev/null || touch expected-fail
 assert_has_file expected-fail
 echo "ok pull mirror without signed summary"
@@ -73,7 +80,7 @@ cd ${test_tmpdir}
 rm -rf repo
 mkdir repo
 ${OSTREE} --repo=repo init --mode=archive-z2
-${OSTREE} --repo=repo remote add origin $(cat httpd-address)/ostree/gnomerepo
+${OSTREE} --repo=repo remote add --set=gpg-verify-summary=true origin $(cat httpd-address)/ostree/gnomerepo
 ${OSTREE} --repo=repo pull --mirror origin
 assert_has_file repo/summary
 assert_has_file repo/summary.sig